package cn.edu.scau.cmi.chenruilin.composite.consistent;

import java.util.ArrayList;

public abstract class ConsistentComponent {
	ConsistentComponent parent=null;
	
	ArrayList<ConsistentComponent> children=new ArrayList<ConsistentComponent>();
	
	abstract ConsistentComponent getParent();
	
	abstract ConsistentComponent addChild(ConsistentComponent child);
	abstract ConsistentComponent deleteChild(ConsistentComponent child);
	abstract ArrayList<ConsistentComponent> getChildren();
}
